package cdc.cs.entity;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @ClassName: TestBO
 * @Description: TODO
 * @Author: kevin
 * @Date: 2020/4/30 11:48
 * @Version: 1.0
 */
public class TestBO implements Serializable {
    private static final long serialVersionUID = 1L;

    @NotNull(message = "id不能为空")
    private Integer id;
    @NotNull(message = "name不能为空")
    private String name;
    @NotNull(message = "title不能为空")
    private String title;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    @Override
    public String toString() {
        return "TestBO{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", title='" + title + '\'' +
                '}';
    }
}
